<%= page_title("Editing " + @entity.name)%>

<%= error_messages_for :entity %>

<% form_for(:entity, :url => museum_object_path(@museum, @entity), :html => { :method => :put }) do |f| %>

<p>Accession no.: <%= text_field :entity, :museum_identifier %></p>

<p>Country of origin: <%= collection_select(:entity, :country_id, @countries, :id, :name )%></p>

<p>Year of acquisition <%= f.text_field :acquired_year %></p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', museum_object_path(@museum, @entity) %> |
<%= link_to 'Back', museum_object_path(@museum) %>